﻿<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <#include "../comm/header.ftl"/>
    <script>
        $(function () {
            //grid
            var grid = $("#customerMsgGrid").ligerGrid({
                height: '100%',
                heightDiff: -5,
                checkbox:true,
                rownumbers:true,
                columns: [
                    {display: 'id', name: 'id',hide:true},
                    {display: '时间', name: 'inputTime'},
                    {display: '姓名', name: 'name'},
                    {display: '性别', name: 'genderName'},
                    {display: '年龄', name: 'age'},
                    {display: '电话', name: 'tel'},
                    {display: '家庭职业', name: 'job'},
                    {display: '意向课程', name: 'curriculum.title'},
                    {display: '来源', name: 'source.title'},
                    {display: '营销人员', name: 'seller.name'},
                    {display: '状态', name: 'statusName'},
                    {display: '备注', name: 'remark',width:150}
                ]
            });
            //查询客户信息
            $("#seach_btn").click(function() {
                grid.set({
                    url: '/customer/getCustomerData.do',
                    //以下设置字段名，为了跟PageInfo的字段名相同才能实现分页
                    root:'list',
                    record:'total',
                    pageParmName:'currentPage',
                    pagesizeParmName:'pageSize',
                    dataAction: 'server'
                    //这样提交高级查询参数
                    //parms: {page:'3',pagesize:4}

                });
                //grid.loadData();
            });

        });


    </script>
</head>
<body style="overflow-x:hidden; padding:2px;">
    <div id="customerMsg">
        <div>
            <span>姓名：</span>
            <input type="text">
            <button id="seach_btn">查询</button>
        </div>
        <div id="customerMsgGrid">

        </div>

    </div>

</body>
</html>